const path = require("path");

const Multer = require("koa-multer");

const avatarUpload = Multer({
  dest: "./upload/avator",
});
// const avatarHandler = async function (ctx, next) {
//   avatarUpload.single("avatar");
//   //   await next();
// };
const avatarHandler = avatarUpload.single("avatar");
module.exports = {
  avatarHandler,
};
